<%-- 
 Document   : transition
 Created on : Nov 14, 2012, 1:32:18 PM
 Author     : user1
--%>

<%@ taglib uri="/struts-tags" prefix="s" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="/CSTF2/Js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/CSTF2/Js/transition/transition.js"></script>
        <script type="text/javascript" src="/CSTF2/Js/transition/demo.js"></script>
        <script type="text/javascript" src="/CSTF2/Js/Implementation/implementation.js"></script>
        <script type="text/javascript" src="/CSTF2/Js/Usuario/adminUsers.js"></script>

        <link rel="stylesheet" type="text/css" href="/CSTF2/css/estilo.css" />
        <link rel="stylesheet" type="text/css" href="/CSTF2/css/stylSergio.css" />

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Assign User</title>

    </head>
    <body>
        <s:div cssClass="divBlancoMenor"></s:div>
        <s:div cssClass="contenidoAzul">
            <jsp:include page="/jsp/encabezado.jsp" flush="true" />
            <jsp:include page="/jsp/menu.jsp" flush="true" />
            <s:div cssClass="divBlanco"></s:div>
        </s:div> 

        <div align="center">
            <fieldset class="fieldSetMedium">                                   
                <legend>Find User</legend>  
                <s:div id="divCentrado" cssStyle="text-align:center;">
                    <s:form action="AdminUsers" >
                        <s:textfield id="textBuscar" label="Name" name="textBuscar"
                                     onkeyup="this.value = this.value.replace().toLowerCase()"> </s:textfield>
                        
                        <s:submit id="botonBuscar" key="usuario.boton.buscar.prop" cssClass="escondido" 
                                  name="buttonAction" cssStyle="display: none;" method="ConsultaNombresLike" />          
                    </s:form>
                    <button id="buttonEnviar"  class="loginBoton" onclick="enviarInfoUsuario()"  type="button"> Search</button>
                    <script>
                        function enviarInfoUsuario(){
                            $("#botonBuscar").click();
                        }</script>
                    <br/>
                    <br/>
                    <br/>
                    <s:form action="AdminUsers"  >
                        <table style="width: 20%; margin-top: 3px;" rules="all" class="listado">
                            <thead>
                                <tr>         
                                    <th style="width: 15px">User</th>
                                    <th style="width: 15px">Action</th>
                                </tr>
                            </thead>                              
                            <tbody>
                                <s:iterator value="listaNombres" >
                                    <tr>
                                        <td align="center"><s:property value="username" /></td>
                                        <td align="center">
                                            <s:a  id="%{id}" cssClass="buttonTablaAssign"  method="AsignarKnekeys" >Assign
                                                <s:param name="idUsuarioLike" value="id"></s:param>
                                            </s:a>
                                        </td> 
                                    </tr>  
                                </s:iterator>
                            </tbody>                  
                        </table> 
                    </s:form>
                </fieldset>
            </s:div>
        </div>
    </body>
</html>

